package com.jiulan.hearthearing.ui.course.adapter;

import android.widget.RelativeLayout;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jiulan.hearthearing.R;
import com.jiulan.hearthearing.ui.course.model.CourseDetailsModel;
import com.jiulan.hearthearing.widget.ShadowContainer;

import java.util.List;

public class CourseLuboMuluAdapter extends BaseQuickAdapter<CourseDetailsModel.DataBean.ClassListBean, BaseViewHolder> {

    public CourseLuboMuluAdapter(List<CourseDetailsModel.DataBean.ClassListBean> data) {
        super(R.layout.item_course_lubo_mulu, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CourseDetailsModel.DataBean.ClassListBean item) {
        ShadowContainer shadowMulu = helper.getView(R.id.shadowMulu);
        helper.setText(R.id.tvTitle, item.getName());
        helper.addOnClickListener(R.id.tvHearing);
        RelativeLayout rlMulu = helper.getView(R.id.rlMulu);
        helper.setText(R.id.tvMulu, item.getName());
        helper.addOnClickListener(R.id.tvBuy);

    }
}
